<div style="width: 100%; margin-top: 20px; margin-bottom: 10px;">
    <a style="display: block; float: left; padding: 10px; border: 1px solid; margin-right: 10px; background-color: #B1B0B0;" href="<?= Yii::app()->controller->createUrl('/admin/users');?>">Пользователи</a>
    <a style="display: block; float: left; padding: 10px; border: 1px solid; margin-right: 10px; background-color: #B1B0B0;" href="<?= Yii::app()->controller->createUrl('/admin/users/pending_list');?>">Заявки на регистрацию</a>
    <a style="display: block; float: left; padding: 10px; border: 1px solid; margin-right: 10px; background-color: #B1B0B0;" href="<?= Yii::app()->controller->createUrl('/admin/users/approved_list');?>">Зарегистрированные пользователи</a>
    <a style="display: block; float: left; padding: 10px; border: 1px solid; margin-right: 10px; background-color: #B1B0B0;" href="<?= Yii::app()->controller->createUrl('/admin/users/metals');?>">Пользователи раздела Мерные слитки</a>
    <a style="display: block; float: left; padding: 10px; border: 1px solid; margin-right: 10px; background-color: #B1B0B0;" href="<?= Yii::app()->controller->createUrl('/admin/users/rejected_list');?>">Отклоненные пользователи</a>
    <div style="clear: both;"></div>
</div>

<h4>Пользователь #<?= $oUser->user_id;?></h4>

<textarea style="width: 100%;" rows="8" readonly="readonly">
<?= $oUser->user_login."\n";?>
<?= $oUser->profile->legal_name."\n";?>
<?= $oUser->address->index.', '.$oUser->address->country->country_name.', '.$oUser->address->state.', '.$oUser->address->city.', '.$oUser->address->street.' '.$oUser->address->house_number.($oUser->address->office_number?' - '.$oUser->address->office_number:'')."\n";?>
УНП <?= $oUser->profile_legal_info->company_unp."\n";?>
р/с <?= $oUser->profile_legal_info->settlement_account."\n";?>
банк <?= $oUser->profile_legal_info->bank_name."\n";?>
код банка <?= $oUser->profile_legal_info->bank_code;?>
</textarea>

<?php

$this->widget('zii.widgets.CDetailView', array
(
    'data'       => $oUser,
    'attributes' => array
    (
        'user_login',
        array
        (
            'label'  => 'Дата регистрации',
            'value' => date('d-m-Y H:i', $oUser->user_cdate)
        ),
        'profile.email',
        array
        (
            'label' => 'Резидент РБ',
            'value' => ( $oUser->profile->is_resident_rb ) ? 'Да' : 'Нет'
        ),
        array
        (
            'label' => 'Тип пользователя',
            'value' => User::$aCustomerTypes[$oUser->profile->customer_type]
        ),
        array
        (
            'label' => 'Страна',
            'value' => $oUser->address->country->country_name
        ),
        'address.city',
        'address.state',
        'address.street',
        'address.house_number',
        'address.office_number',
        'address.index',
        'address.postcode',
        'profile.legal_name',
        'profile.leader_name',
        'profile.leader_position',
        'profile.phone',
        'profile.mobile_phone',
        'profile.fax',
        'profile.allow_info',
        'profile_legal_info.passport_series',
        'profile_legal_info.passport_number',
        'profile_legal_info.passport_issued',
        'profile_legal_info.passport_issue_date',
        'profile_legal_info.personal_number',
        'profile_legal_info.bank_name',
        'profile_legal_info.bank_code',
        'profile_legal_info.settlement_account',
        'profile_legal_info.company_uid',
        'profile_legal_info.company_reg_number',
        'profile_legal_info.company_issued',
        'profile_legal_info.company_reg_settlement_number',
        'profile_legal_info.company_reg_date',
        'profile_legal_info.company_unp'
    )
));

?>
